package com.iakuil.app.domain.entity;

import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.iakuil.app.common.core.domain.BaseEntity;
import com.iakuil.app.common.core.enums.Gender;
import lombok.*;

/**
 * 作者实体类
 *
 * @author Kai
 * @date 2023-12-05
 **/
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(value = "t_author")
public class Author extends BaseEntity<Author> {

    /**
     * 姓名
     */
    private String name;

    /**
     * 性别
     */
    private Gender gender;

    /**
     * 简介
     */
    @TableField(condition = SqlCondition.LIKE_RIGHT)
    private String profile;
}
